FROM 192.168.7.174:5000/centos72_base

MAINTAINER zhanghs "346332989@qq.com"

# 更新源，安装ssh server

RUN /usr/bin/yum -y  install  openssh-server

RUN mkdir /var/run/sshd

# 设置root ssh远程登录密码为123456
RUN echo "root:123456" | chpasswd

# 容器需要开放SSH 22端口
EXPOSE 22